/**
 * Created by 黄忠园 on 2017/12/26.
 */

// 存储选择的标签及更改选择标签的样式
var cssdefault = "background-color: rgb(235,241,253);padding: 0 10px;border-radius:25px;color: rgb(127,162,251)";
var cssactive = "background-color: #0A92EF;padding: 0 10px;border-radius:25px;color: rgb(255,255,255)";
function storageChose(event, pro, list) {
    var aimcss = event.currentTarget.attributes[0].value;
    if (aimcss == cssdefault) {
        event.currentTarget.attributes[0].value = cssactive;
        list.push(pro)
    }
    if (aimcss == cssactive) {
        event.currentTarget.attributes[0].value = cssdefault;
        list.splice(list.indexOf(pro), 1);
    }
    return list;
}